-- background: 33349 from stack: in.0-2 -- bmap block id: 33931 -- flags: 0000 -- background id: 0 -- name: Extending ----- HyperTalk script ----- -- These handlers show Elmo's hands extending. on openCard showCdPic end openCard on showCdPic wait 20 show card picture end showCdPic on closeCard -- set lockMessages to true hideCdPic end closeCard on hideCdPic hide card picture end hideCdPic ------------------------------------------------------------ -- This handler goes back to the last card if the user clicks -- outside the "window". on mouseUp if "field" is not in the target and "button" is not in the target then goBack end mouseUp -- This handler stores the name of the last card. on goBack go cd "Extending the u" of stack "Intro to HyperCard 2.0" end goBack -- part 1 (field) -- low flags: 01 -- high flags: 0000 -- rect: left=187 top=76 right=261 bottom=445 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 174 -- text size: 14 -- style flags: 0 -- line height: 15 -- part name: -- part 4 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=31 top=53 right=266 bottom=450 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: wind -- part 3 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=38 top=55 right=70 bottom=58 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: closebox ----- HyperTalk script ----- -- This handler sets the cursor to simulate a real closeBox. on mouseEnter set the cursor to "arrow" end mouseEnter -- This handler sets the cursor to simulate a real closeBox. on mouseWithIn repeat until the mouseloc is not within the rect of me or the mouse is down set the cursor to "arrow" end repeat if the mouse is down then send mouseUp to me end if end mouseWithIn -- This handler simulates clicking in a closeBox. on mouseUp set the icon of me to 7937 wait 15 set the icon of me to 0 lock screen goBack end mouseUp